import request from '@/axios/axios.js'

// 分页查询
export const getTableData = (params) => {
    return request({
        method: 'get',
        url: '/dms/dmsDeviceScore/list',
        params: params
    })
}

// 新增评分配置
export const saveOrUpdate = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsDeviceScore/saveOrUpdate',
        data: params
    })
}

// 编辑评分配置
export const updateScore = (params) => {
    return request({
        method: 'post',
        url: '/dms//dmsDeviceScore/update',
        data: params
    })
}

// 评分配置 - 复制并添加
export const copyAndAdd = (params) => {
    return request({
        method: 'get',
        url: '/dms/dmsDeviceScore/copyAndAdd',
        params: params
    })
}

// 评分配置 - 删除
export const deleteScoreConfig = (params) => {
    return request({
        method: 'get',
        url: '/dms/dmsDeviceScore/delete',
        params: params
    })
}

// 评分配置 - 获取详情
export const detail = (params) => {
    return request({
        method: 'get',
        url: '/dms/dmsDeviceScore/detail',
        params: params
    })
}

// 评分配置 - 导出excel
export const exportExcel = (params) => {
    return request({
        method: 'get',
        responseType: 'blob',
        url: '/dms/dmsDeviceScore/export',
        params: params
    })
}
